net.sf.webphotos.model
Class PhotoVO
java.lang.Object
net.sf.webphotos.entity.PhotoEntity
net.sf.webphotos.model.PhotoVO
- All Implemented Interfaces:
- Serializable, Comparable<IsPhoto>, HasID<Integer>, IsPhoto
@Entity
public class PhotoVO
- extends PhotoEntity
- implements Serializable, HasID<Integer>
- Author:
- Guilherme
- See Also:
- Serialized Form
Constructor Summary |
PhotoVO()
Deprecated. |
PhotoVO(Integer fotoid,
int albumid,
String legenda,
int creditoid,
Integer largura,
Integer altura)
Deprecated. |
PhotoVO(String nmfoto,
String legenda,
CreditsVO creditos,
String caminhoArquivo)
Default Constructor for new albuns |
PhotoVO(String nmfoto,
String legenda,
CreditsVO creditos,
String caminhoArquivo,
AlbumVO album)
Constructor to add photos to existing album |
PhotoVO
@Deprecated
public PhotoVO()
- Deprecated.
- TODO: remove
PhotoVO
@Deprecated
public PhotoVO(Integer fotoid,
int albumid,
String legenda,
int creditoid,
Integer largura,
Integer altura)
- Deprecated.
PhotoVO
public PhotoVO(String nmfoto,
String legenda,
CreditsVO creditos,
String caminhoArquivo)
- Default Constructor for new albuns
- Parameters:
nmfoto
- legenda
- creditos
- album
-
PhotoVO
public PhotoVO(String nmfoto,
String legenda,
CreditsVO creditos,
String caminhoArquivo,
AlbumVO album)
- Constructor to add photos to existing album
- Parameters:
nmfoto
- legenda
- creditos
- album
-
getFotoid
public Integer getFotoid()
setFotoid
public void setFotoid(Integer fotoid)
getNmfoto
public String getNmfoto()
setNmfoto
public void setNmfoto(String nmfoto)
getLegenda
public String getLegenda()
- Specified by:
getLegenda
in interface IsPhoto
setLegenda
public void setLegenda(String legenda)
toString
public String toString()
- Overrides:
toString
in class Object
getCreditos
public CreditsVO getCreditos()
- Specified by:
getCreditos
in interface IsPhoto
setCreditos
public void setCreditos(CreditsVO creditos)
getAlbum
public AlbumVO getAlbum()
setAlbum
public void setAlbum(AlbumVO album)
getCaminhoArquivo
public String getCaminhoArquivo()
- Returns:
- the caminhoArquivo
getAltura
public Integer getAltura()
getLargura
public Integer getLargura()
getId
public Integer getId()
- Specified by:
getId
in interface HasID<Integer>
getKey
public String getKey()
- Specified by:
getKey
in interface IsPhoto
Copyright © 2008-2012. All Rights Reserved.